$("#view").click(function (){
	layer.open({
		  type: 1,
		  skin: 'layui-layer-rim', //加上边框
		  area: ['500px', '500px'], //宽高
		  content: '<div style="padding:10px 45px;"><div id="clipArea" style="height:400px;width:400px;float:left;border:1px solid gray;"></div>'
				+'<div style="margin:5px 5px;float:left;">'
			+'<input type="file" id="addfile" name="img10" class="pics" >'
			+'<button type="button" id="file_upload10">截取</button>'				
			+'</div></div>'
		});
	$("#clipArea").photoClip({
		width: 356,
		height: 260,
		file: "#addfile",
		view: "#view",
		ok: "#file_upload10",
		loadStart: function() {
			console.log("照片读取中");
		},
		loadComplete: function() {
			console.log("照片读取完成");
		},
		clipFinish: function(dataURL) {
			/* console.log(dataURL); */
			layer.closeAll();
		}
	});
});